import axios from 'axios';
import MX from '@/utils/myAxios';

const baseUrl = 'http://xawn.f3322.net:8012/gen/goods';

//获取商品数据
export const getGoodData = () => MX(baseUrl, 'get');
//新增商品
export const addGood = (data) => MX(baseUrl, 'post', data);
//修改商品
export const xgGood = (data) => MX(baseUrl, 'post', data);
